.class public Lcom/waiqin365/lightapp/base/WqBaseActivity;
.super Landroid/app/Activity;

# interfaces
.implements Ljava/util/Observer;


# instance fields
.field protected auth_code:Ljava/lang/String;

.field protected isClearFocus:Z

.field protected mContext:Landroid/content/Context;

.field protected mProgressDialog:Lcom/waiqin365/compons/view/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->isClearFocus:Z

    return-void
.end method


# virtual methods
.method public back()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->finish()V

    return-void
.end method

.method public closeActivity(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 0

    return-void
.end method

.method public dismissProgressDialog()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/a;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/a;->dismiss()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    instance-of v0, v0, Landroid/widget/EditText;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-static {v0, v1, v2}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/view/View;FF)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/app/Activity;)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->isClearFocus:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->clearFocus()V

    :cond_0
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/waiqin365/lightapp/base/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/base/a;-><init>(Lcom/waiqin365/lightapp/base/WqBaseActivity;)V

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_1
    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public finish()V
    .locals 2

    invoke-super {p0}, Landroid/app/Activity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public finish(Z)V
    .locals 2

    invoke-super {p0}, Landroid/app/Activity;->finish()V

    if-eqz p1, :cond_0

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method

.method public hasData(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 0

    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->finish()V

    return-void
.end method

.method public onBtnOk()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->finish()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mContext:Landroid/content/Context;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->auth_code:Ljava/lang/String;

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getApplication()Landroid/app/Application;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->dismissProgressDialog()V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->deleteObserver(Ljava/util/Observer;)V

    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    return-void
.end method

.method protected onResume()V
    .locals 3

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;

    if-nez v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/waiqin365/base/login/OtherLoginActivity;

    if-nez v1, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/base/login/LoginCheck1Activity;

    if-eqz v0, :cond_1

    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    :goto_0
    return-void

    :cond_1
    const-string/jumbo v0, "onresume  login main\u8d44\u6e90\u88ab\u56de\u6536"

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/base/login/d/g;->a(Landroid/app/Activity;)V

    goto :goto_0
.end method

.method public refreshActivity(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 0

    return-void
.end method

.method public showProgressDialog(Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->showProgressDialog(Ljava/lang/String;Z)V

    return-void
.end method

.method public showProgressDialog(Ljava/lang/String;Z)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/compons/view/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/compons/view/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0, p1}, Lcom/waiqin365/compons/view/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/a;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mProgressDialog:Lcom/waiqin365/compons/view/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p2}, Lcom/waiqin365/compons/view/a;->a(ZZ)V

    :cond_1
    return-void
.end method

.method public showToast(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mContext:Landroid/content/Context;

    invoke-static {v0, p1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    return-void
.end method

.method public showToast(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/base/WqBaseActivity;->mContext:Landroid/content/Context;

    invoke-static {v0, p1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    return-void
.end method

.method public startActivity(Landroid/content/Intent;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public startActivityForResult(Landroid/content/Intent;I)V
    .locals 2

    invoke-super {p0, p1, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public superDispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 2

    instance-of v0, p2, Lcom/fiberhome/gaea/client/a/c;

    if-eqz v0, :cond_1

    check-cast p2, Lcom/fiberhome/gaea/client/a/c;

    const-string/jumbo v0, "close_activity"

    iget-object v1, p2, Lcom/fiberhome/gaea/client/a/c;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_0
    invoke-virtual {p0, p2}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->closeActivity(Lcom/fiberhome/gaea/client/a/c;)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->finish(Z)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    const-string/jumbo v0, "reinit_activity"

    iget-object v1, p2, Lcom/fiberhome/gaea/client/a/c;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_3
    invoke-virtual {p0, p2}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->refreshActivity(Lcom/fiberhome/gaea/client/a/c;)V

    goto :goto_0

    :cond_4
    const-string/jumbo v0, "has_data"

    iget-object v1, p2, Lcom/fiberhome/gaea/client/a/c;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p2, Lcom/fiberhome/gaea/client/a/c;->c:Ljava/util/List;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_5
    invoke-virtual {p0, p2}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->hasData(Lcom/fiberhome/gaea/client/a/c;)V

    goto :goto_0
.end method
